package com.hxzy.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @author 
 * 商品分类表
 */
@Data
public class MerchandiseClass implements Serializable {
    private Long id;

    /**
     * 商家id
     */
    private BigDecimal mId;

    /**
     * 类别名称
     */
    @NotBlank(message = "类别名称不能为空")
    private String name;

    /**
     * 类别图片
     */
    @NotBlank(message = "图片不能为空")
    private String picture;

    /**
     * 创建时间
     */
    @JsonInclude(value = JsonInclude.Include.NON_NULL)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /**
     * 创建人
     */
    @JsonInclude(value = JsonInclude.Include.NON_NULL)
    private String createBy;

    /**
     * 更新时间
     */
    @JsonInclude(value = JsonInclude.Include.NON_NULL)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    /**
     * 更新人
     */
    @JsonInclude(value = JsonInclude.Include.NON_NULL)
    private String updateBy;

    private static final long serialVersionUID = 1L;
}